<div class="table-responsive" style="overflow-x: visible;">
    <table class="table table-bordered table-hover">
        <tbody>
        <tr>
            <th class="hidden-xs">
                <label><input onchange="checkAll()" type="checkbox" value=""></label>
            </th>
            <th>ID</th>
            <th>标题</th>
            <th>封面图片</th>
            <th>状态</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>

        {{#each records}}
        <tr>
            <td class="hidden-xs">
                <label><input name="checkbox" class="check" type="checkbox" value="{{id}}"></label>
            </td>
            <td>{{id}}</td>
            <td>{{title}}</td>
            <td>
                <div class="btn-group" style="margin: 0px">
                    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        图片<span class="caret"></span></button>
                    <div class="dropdown-menu">
                        <img style="height: 200px"
                             src="{{cover.url}}" onerror="src='/public/noimage.gif'"/>
                    </div>
                </div>
            </td>
            <td>
                {{#eq status 1}}
                <button onclick="javascript:disableItem('{{id}}')" class="btn btn-success"><span class="glyphicon glyphicon-ok"/> </button>
                {{else}}
                <button onclick="javascript:enableItem('{{id}}')" class="btn btn-danger" ><span class="glyphicon glyphicon-remove"/></button>
                {{/eq}}
            </td>
            <td>{{moment updatedAt 'YYYY-MM-DD HH:mm:ss'}}</td>
            <td class="table-action">
                <a href="/datacenter/mapmark/add?id={{id}}">编辑</a>
                <button onclick="javascript:deleteItem('{{id}}')" class="btn btn-danger" >删除</button>
            </td>
        </tr>
        {{/each}}

        </tbody>
    </table>
    <div class="box-footer no-padding">
        <div class="mailbox-controls">
            <div class="pull-right">
                {{{pager}}}
            </div>
        </div>
    </div>
</div>